#!/bin/sh
if [ "$1" = "" ]; then
  echo "Usage $0 directory to make empty"
  exit
else
  DIR=$1
fi
if [ -d $DIR ]; then
  echo "Emptying $DIR in 10 secconds...."
  sleep 10
  find $DIR | while read FFILE
  do
    echo "Removing file $FFILE."
    sleep 1
    rm -f $FFILE
  done
fi
